#pragma once

#include "Sprite.h"

class CClient
{
public:
    CClient();
    CClient(SOCKADDR_IN& addr, UINT cbAddrLen, SOCKET hSocket, LPPER_IO_OPERATION_DATA lpPerIOData);
    ~CClient(void);

    UINT& GetOffset();
    VOID SetOffset(const UINT &uiOffset);
    LPPER_IO_OPERATION_DATA GetPerIOData();

    VOID AttachSprite(POSITION posClientSprite);
    POSITION GetAssociateSprite();

private:
    SOCKADDR_IN m_addr;
    UINT m_uiAddrLen;
    SOCKET m_hSocket;
    UINT m_uiOffset;
    LPPER_IO_OPERATION_DATA m_pPerIOData;
    POSITION m_posClientSpirte;
};
